package com.gongj.populateBean.autowired;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.gongj.populateBean.autowired"})
public class AppApplication {

	@Bean
	public OrderService user(@Autowired OrderService o){
		System.out.println("user.o = "+ o);
		return new OrderService();
	}

}